package com.tmt.im.manager.controller.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/8/24 23:18
 * @Version 1.0
 **/
@Getter
@Setter
@Tag(name = "好友申请回复对象", description = "好友申请回复对象")
public class FriendApplyReplyVo implements Serializable {

    @Serial
    private static final long serialVersionUID = -3636160066845108368L;

    @Schema(name = "applyId", description = "好友申请记录ID")
    @JsonProperty("id")
    @NotNull(message = "申请ID不允许为空")
    private Long applyId;

    @Schema(description = "好友申请结果：1-同意，2拒绝")
    @NotNull(message = "申请结果不允许为空")
    @Min(value = 1, message = "申请结果只能是1(同意)或2(拒绝)")
    @Max(value = 2, message = "申请结果只能是1(同意)或2(拒绝)")
    @JsonProperty("type")
    private Integer result;

    @Schema(name = "remark", description = "为好友添加的备注")
    @JsonProperty("remark")
    private String remark;

}
